<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl">
	<head>
		<title>{% block title %}HIT | Hegelian Inquiry Tool{% endblock %}</title>
		<meta name="webmaster" content="Richard Cornelissen" />
		<meta name="description" content="Hegelian Inquiring System prototype" />
		<meta name="keywords" content="information reliability, Hegelian Inquiring System, Hegel, Denzel, Mason, Mitroff" />
		<meta name="language" content="en-US" />
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/reset.css" />
		<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/default.css" />
		{% block javascripts %}
		<script language="javascript" defer="defer" src="{{ JAVASCRIPT_URL }}home.js"></script>
		{% endblock %}
		
	</head>
	<body>
		<noscript>
			<div class="noscript">To view this site, JavaScript must be enabled.</div>
		</noscript>
		<div id="header">
			<div class="header">
				<a id="logo" href="{% url HIT.Triangulator.views.home %}" title="Homepage"><img src="{{ STATIC_URL }}img/logo.png" alt="Outlay logo" /></a>
			</div>
			<div class="pagetitle">{% block pagetitle %}Home{% endblock %}</div>
			
		</div>
		<div class="menu">
			<ul>
				<li>
					<a href="/home/" title="home">Home</a>
					{% if user.is_staff %}
						<li><a href="/admin/">Admin</a></li>
					{% endif %}
					{% if user.is_authenticated %}
						<li><a href="{%url HIT.Triangulator.views.start_triangulation %}">Triangulate</a></li>
						<li><a href="{%url django.contrib.auth.views.logout_then_login %}">Log out</a></li>
					{% else %}
						<li><a href="/register/">Register</a></li>
						<li><a href="{%url django.contrib.auth.views.login %}?next=/">Log in</a></li>
					{% endif %}
					{% if user.is_authenticated %}
						<li class="right">Welcome, {{ user }}</li>
					{% endif %}
				</li>
			</ul>
			</div>
		<div id="container">
			<div id="content">
				
				{% block content %}
				<p style="width: 550px;">
					Welcome to the Hegelian Inquiry Tool (HIT).<br />
					This tool will aid its users in finding and checking the reliability of documents, by searching for additional sources and information about the author, etc.
					This process is known as triangulation.	To begin searching and triangulating documents on the internet, please click <a href="{%url HIT.Triangulator.views.start_triangulation %}">here</a>.
				</p>
				<br />
				{% if results %}
					<h1>Previous triangulations:</h1><br />
					{% for subject,triangulations in results.items %}
						<h2>{{ subject }}</h2><br />
						{% for t in triangulations %}
							<a href="{% url HIT.Triangulator.views.triangulate_result id=t.id %}">{{ t }}</a> 
							<div class="delete_triangulation" onclick="javascript:delete_triangulation({{ t.id }});"><img src="{{ STATIC_URL }}img/delete.png" /></div><br />
						{% endfor %}
					{% endfor %}
					
				{% endif %}
				{% endblock %}
			</div>
		</div>
		<div id="footer">
			
		</div>
	</body>
</html>
